﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
   public class ForecastComment
    {
        private static Data.ForecastComment Data_Newscont = new Data.ForecastComment();
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.ForecastComment model)
        {
            return Data_Newscont.Add(model);
        }
        public static Model.ForecastComment NewsTopOne(string sql)
        {
            return Data_Newscont.GetModelBysql(sql);
        }
        // <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.ForecastComment> GetPageListBysql(int pageIndex, int pageSize, string sql, out int totalCount)
        {
            return Data_Newscont.GetPageListWhere(pageIndex, pageSize, sql, out totalCount);
        }
    }
}
